# 日期时间转换

x = input("输入日期")

month = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
x = x.split("/")
print("美式格式{} {},{}".format(month[eval(x[1]) - 1], x[2], x[0]))
print("英式格式{} {},{}".format(x[2], month[eval(x[1]) - 1], x[0]))